package games.menem 
{
	import org.flixel.FlxPoint;
	import org.flixel.FlxSprite;
	
	/**
	 * ...
	 * @author Jacowaco
	 */
	public class Asteroid extends FlxSprite 
	{
		[Embed(source = "../../../assets/menem/small.png")] private var img1:Class;
		[Embed(source = "../../../assets/menem/medium.png")] private var img2:Class;
		[Embed(source = "../../../assets/menem/large.png")] private var img3:Class;
		
		public function Asteroid(_x:Number=0, _y:Number=0) 
		{
			var type:Class;
			
			if (Math.random() < 0.333)
			{
				type = img1;
			}
			else if (Math.random() < 0.5)
			{
				type = img2;
			}
			else
			{
				type = img3;
			}
			super(_x, _y, type);
			
			if (Math.random() < 0.5)
			{
				scale = new FlxPoint( -1, 1);
			}
		}
		
	}

}